package com.giscloud.amp.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class AmpPwChgTypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AmpPwChgTypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andPwChgTypeIdIsNull() {
            addCriterion("PW_CHG_TYPE_ID is null");
            return (Criteria) this;
        }

        public Criteria andPwChgTypeIdIsNotNull() {
            addCriterion("PW_CHG_TYPE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andPwChgTypeIdEqualTo(Integer value) {
            addCriterion("PW_CHG_TYPE_ID =", value, "pwChgTypeId");
            return (Criteria) this;
        }

        public Criteria andPwChgTypeIdNotEqualTo(Integer value) {
            addCriterion("PW_CHG_TYPE_ID <>", value, "pwChgTypeId");
            return (Criteria) this;
        }

        public Criteria andPwChgTypeIdGreaterThan(Integer value) {
            addCriterion("PW_CHG_TYPE_ID >", value, "pwChgTypeId");
            return (Criteria) this;
        }

        public Criteria andPwChgTypeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("PW_CHG_TYPE_ID >=", value, "pwChgTypeId");
            return (Criteria) this;
        }

        public Criteria andPwChgTypeIdLessThan(Integer value) {
            addCriterion("PW_CHG_TYPE_ID <", value, "pwChgTypeId");
            return (Criteria) this;
        }

        public Criteria andPwChgTypeIdLessThanOrEqualTo(Integer value) {
            addCriterion("PW_CHG_TYPE_ID <=", value, "pwChgTypeId");
            return (Criteria) this;
        }

        public Criteria andPwChgTypeIdIn(List<Integer> values) {
            addCriterion("PW_CHG_TYPE_ID in", values, "pwChgTypeId");
            return (Criteria) this;
        }

        public Criteria andPwChgTypeIdNotIn(List<Integer> values) {
            addCriterion("PW_CHG_TYPE_ID not in", values, "pwChgTypeId");
            return (Criteria) this;
        }

        public Criteria andPwChgTypeIdBetween(Integer value1, Integer value2) {
            addCriterion("PW_CHG_TYPE_ID between", value1, value2, "pwChgTypeId");
            return (Criteria) this;
        }

        public Criteria andPwChgTypeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("PW_CHG_TYPE_ID not between", value1, value2, "pwChgTypeId");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("NAME is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("NAME is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("NAME =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("NAME <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("NAME >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("NAME >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("NAME <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("NAME <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("NAME like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("NAME not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("NAME in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("NAME not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("NAME between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("NAME not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("DESCRIPTION is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("DESCRIPTION is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("DESCRIPTION =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("DESCRIPTION <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("DESCRIPTION >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("DESCRIPTION >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("DESCRIPTION <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("DESCRIPTION <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("DESCRIPTION like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("DESCRIPTION not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("DESCRIPTION in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("DESCRIPTION not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("DESCRIPTION between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("DESCRIPTION not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andPwCheckRuleIsNull() {
            addCriterion("PW_CHECK_RULE is null");
            return (Criteria) this;
        }

        public Criteria andPwCheckRuleIsNotNull() {
            addCriterion("PW_CHECK_RULE is not null");
            return (Criteria) this;
        }

        public Criteria andPwCheckRuleEqualTo(String value) {
            addCriterion("PW_CHECK_RULE =", value, "pwCheckRule");
            return (Criteria) this;
        }

        public Criteria andPwCheckRuleNotEqualTo(String value) {
            addCriterion("PW_CHECK_RULE <>", value, "pwCheckRule");
            return (Criteria) this;
        }

        public Criteria andPwCheckRuleGreaterThan(String value) {
            addCriterion("PW_CHECK_RULE >", value, "pwCheckRule");
            return (Criteria) this;
        }

        public Criteria andPwCheckRuleGreaterThanOrEqualTo(String value) {
            addCriterion("PW_CHECK_RULE >=", value, "pwCheckRule");
            return (Criteria) this;
        }

        public Criteria andPwCheckRuleLessThan(String value) {
            addCriterion("PW_CHECK_RULE <", value, "pwCheckRule");
            return (Criteria) this;
        }

        public Criteria andPwCheckRuleLessThanOrEqualTo(String value) {
            addCriterion("PW_CHECK_RULE <=", value, "pwCheckRule");
            return (Criteria) this;
        }

        public Criteria andPwCheckRuleLike(String value) {
            addCriterion("PW_CHECK_RULE like", value, "pwCheckRule");
            return (Criteria) this;
        }

        public Criteria andPwCheckRuleNotLike(String value) {
            addCriterion("PW_CHECK_RULE not like", value, "pwCheckRule");
            return (Criteria) this;
        }

        public Criteria andPwCheckRuleIn(List<String> values) {
            addCriterion("PW_CHECK_RULE in", values, "pwCheckRule");
            return (Criteria) this;
        }

        public Criteria andPwCheckRuleNotIn(List<String> values) {
            addCriterion("PW_CHECK_RULE not in", values, "pwCheckRule");
            return (Criteria) this;
        }

        public Criteria andPwCheckRuleBetween(String value1, String value2) {
            addCriterion("PW_CHECK_RULE between", value1, value2, "pwCheckRule");
            return (Criteria) this;
        }

        public Criteria andPwCheckRuleNotBetween(String value1, String value2) {
            addCriterion("PW_CHECK_RULE not between", value1, value2, "pwCheckRule");
            return (Criteria) this;
        }

        public Criteria andCycleTimeIsNull() {
            addCriterion("CYCLE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andCycleTimeIsNotNull() {
            addCriterion("CYCLE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andCycleTimeEqualTo(Integer value) {
            addCriterion("CYCLE_TIME =", value, "cycleTime");
            return (Criteria) this;
        }

        public Criteria andCycleTimeNotEqualTo(Integer value) {
            addCriterion("CYCLE_TIME <>", value, "cycleTime");
            return (Criteria) this;
        }

        public Criteria andCycleTimeGreaterThan(Integer value) {
            addCriterion("CYCLE_TIME >", value, "cycleTime");
            return (Criteria) this;
        }

        public Criteria andCycleTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("CYCLE_TIME >=", value, "cycleTime");
            return (Criteria) this;
        }

        public Criteria andCycleTimeLessThan(Integer value) {
            addCriterion("CYCLE_TIME <", value, "cycleTime");
            return (Criteria) this;
        }

        public Criteria andCycleTimeLessThanOrEqualTo(Integer value) {
            addCriterion("CYCLE_TIME <=", value, "cycleTime");
            return (Criteria) this;
        }

        public Criteria andCycleTimeIn(List<Integer> values) {
            addCriterion("CYCLE_TIME in", values, "cycleTime");
            return (Criteria) this;
        }

        public Criteria andCycleTimeNotIn(List<Integer> values) {
            addCriterion("CYCLE_TIME not in", values, "cycleTime");
            return (Criteria) this;
        }

        public Criteria andCycleTimeBetween(Integer value1, Integer value2) {
            addCriterion("CYCLE_TIME between", value1, value2, "cycleTime");
            return (Criteria) this;
        }

        public Criteria andCycleTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("CYCLE_TIME not between", value1, value2, "cycleTime");
            return (Criteria) this;
        }

        public Criteria andCreatedStaffIdIsNull() {
            addCriterion("CREATED_STAFF_ID is null");
            return (Criteria) this;
        }

        public Criteria andCreatedStaffIdIsNotNull() {
            addCriterion("CREATED_STAFF_ID is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedStaffIdEqualTo(Long value) {
            addCriterion("CREATED_STAFF_ID =", value, "createdStaffId");
            return (Criteria) this;
        }

        public Criteria andCreatedStaffIdNotEqualTo(Long value) {
            addCriterion("CREATED_STAFF_ID <>", value, "createdStaffId");
            return (Criteria) this;
        }

        public Criteria andCreatedStaffIdGreaterThan(Long value) {
            addCriterion("CREATED_STAFF_ID >", value, "createdStaffId");
            return (Criteria) this;
        }

        public Criteria andCreatedStaffIdGreaterThanOrEqualTo(Long value) {
            addCriterion("CREATED_STAFF_ID >=", value, "createdStaffId");
            return (Criteria) this;
        }

        public Criteria andCreatedStaffIdLessThan(Long value) {
            addCriterion("CREATED_STAFF_ID <", value, "createdStaffId");
            return (Criteria) this;
        }

        public Criteria andCreatedStaffIdLessThanOrEqualTo(Long value) {
            addCriterion("CREATED_STAFF_ID <=", value, "createdStaffId");
            return (Criteria) this;
        }

        public Criteria andCreatedStaffIdIn(List<Long> values) {
            addCriterion("CREATED_STAFF_ID in", values, "createdStaffId");
            return (Criteria) this;
        }

        public Criteria andCreatedStaffIdNotIn(List<Long> values) {
            addCriterion("CREATED_STAFF_ID not in", values, "createdStaffId");
            return (Criteria) this;
        }

        public Criteria andCreatedStaffIdBetween(Long value1, Long value2) {
            addCriterion("CREATED_STAFF_ID between", value1, value2, "createdStaffId");
            return (Criteria) this;
        }

        public Criteria andCreatedStaffIdNotBetween(Long value1, Long value2) {
            addCriterion("CREATED_STAFF_ID not between", value1, value2, "createdStaffId");
            return (Criteria) this;
        }

        public Criteria andCreatedDtIsNull() {
            addCriterion("CREATED_DT is null");
            return (Criteria) this;
        }

        public Criteria andCreatedDtIsNotNull() {
            addCriterion("CREATED_DT is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedDtEqualTo(Date value) {
            addCriterionForJDBCDate("CREATED_DT =", value, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtNotEqualTo(Date value) {
            addCriterionForJDBCDate("CREATED_DT <>", value, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtGreaterThan(Date value) {
            addCriterionForJDBCDate("CREATED_DT >", value, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("CREATED_DT >=", value, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtLessThan(Date value) {
            addCriterionForJDBCDate("CREATED_DT <", value, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("CREATED_DT <=", value, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtIn(List<Date> values) {
            addCriterionForJDBCDate("CREATED_DT in", values, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtNotIn(List<Date> values) {
            addCriterionForJDBCDate("CREATED_DT not in", values, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("CREATED_DT between", value1, value2, "createdDt");
            return (Criteria) this;
        }

        public Criteria andCreatedDtNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("CREATED_DT not between", value1, value2, "createdDt");
            return (Criteria) this;
        }

        public Criteria andVersionIsNull() {
            addCriterion("VERSION is null");
            return (Criteria) this;
        }

        public Criteria andVersionIsNotNull() {
            addCriterion("VERSION is not null");
            return (Criteria) this;
        }

        public Criteria andVersionEqualTo(Date value) {
            addCriterionForJDBCDate("VERSION =", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotEqualTo(Date value) {
            addCriterionForJDBCDate("VERSION <>", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThan(Date value) {
            addCriterionForJDBCDate("VERSION >", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("VERSION >=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThan(Date value) {
            addCriterionForJDBCDate("VERSION <", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("VERSION <=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionIn(List<Date> values) {
            addCriterionForJDBCDate("VERSION in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotIn(List<Date> values) {
            addCriterionForJDBCDate("VERSION not in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("VERSION between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("VERSION not between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("REMARK is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("REMARK is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("REMARK =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("REMARK <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("REMARK >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("REMARK >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("REMARK <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("REMARK <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("REMARK like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("REMARK not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("REMARK in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("REMARK not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("REMARK between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("REMARK not between", value1, value2, "remark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}